package com.slipper.core.poi.excel;

import java.io.File;
import java.io.InputStream;

public class ExcelConfig {
    private Mode mode;
    private String path;
    private File file;
    private InputStream inputStream;

    public ExcelConfig(String path) {
        this.mode = Mode.PATH;
        this.path = path;
    }

    public ExcelConfig(File file) {
        this.mode = Mode.FILE;
        this.file = file;
    }

    public ExcelConfig(InputStream inputStream) {
        this.mode = Mode.STREAM;
        this.inputStream = inputStream;
    }

    public void setMode(Mode mode) {
        this.mode = mode;
    }

    public Mode getMode() {
        return mode;
    }

    public String getPath() {
        return path;
    }

    public File getFile() {
        return file;
    }

    public InputStream getInputStream() {
        return inputStream;
    }
}